;
var db = require("../../javascript/mysql");
var mysql = new db.mysqlClient("accident");
function genProductInfo() {
    plan = {
        "planA": {
            "name": "驾校学员意外伤害险",
            "company": "华安保险",
            "days": "1y",
            "people_count": "1",
            "accident_death": "100000",
            "accident_medical": "10000",
            "price": "35.00"
        },
        "planB": {
            "name": "驾校学员意外伤害险",
            "company": "华安保险",
            "days": "1y",
            "people_count": "1",
            "accident_death": "200000",
            "accident_medical": "20000",
            "price": "65.00"
        },
        "planC": {
            "name": "驾校学员意外伤害险",
            "company": "华安保险",
            "days": "1y",
            "people_count": "1",
            "accident_death": "300000",
            "accident_medical": "30000",
            "price": "100.00"
        }
    }
    for(k in plan){
        data = plan[k];
        mysql.insertData( data )
    }
    mysql.close();
}
